#ifndef IDRAW_H
#define IDRAW_H

#include<QtGui>
#include"DrawType.h"

class IDraw
{
public:
    IDraw();

    // Overridables
    virtual void OnLButtonDown(QGraphicsSceneMouseEvent *event) = 0;
    virtual void OnLButtonDblClk(QGraphicsSceneMouseEvent *event) = 0;
    virtual void OnLButtonUp(QGraphicsSceneMouseEvent *event) = 0;
    virtual void OnMouseMove(QGraphicsSceneMouseEvent *event) = 0;
    virtual void OnEditProperties() = 0;
    virtual void OnCancel() = 0;

    // Attributes
    DrawTool m_drawTool;

//    static CDrawTool* FindTool(DrawShape drawShape);
//    static CPtrList c_tools;
//    static CPoint c_down;
//    static UINT c_nDownFlags;
//    static CPoint c_last;
//    static DrawShape c_drawShape;
};

#endif // IDRAW_H
